using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.SqlClient;
using SEO.Model;
using SEO.DAL;

namespace SEO.BLL
{

    /// <summary>
    /// 版权所有: 版权所有(C) 2012，云里网络科技
    /// 内容摘要: EDMUnsubscribesBLL
    /// 完成日期：2012年8月15日
    /// 版    本：V1.0 
    /// 作    者：Adin
    /// </summary>
    public class EDMMailUnsubscribesBLL
    {
        EDMMailUnsubscribesDAL esDAL = new EDMMailUnsubscribesDAL();

        /// <summary>
        /// 获取EDMUnsubscribes表中所有数据
        /// <returns>返回List类型</returns>
        /// </summary>
        public List<EDMMailUnsubscribes> GetAllEDMUnsubscribesBLL()
        {
            return esDAL.GetAllEDMUnsubscribesDAL();
        }

        /// <summary>
        /// 根据传入的SQL语句获取EDMUnsubscribes表中数据
        /// </summary>
        /// <param name="strSql">SQL语句</param>
        /// <returns>返回List类型</returns>
        public List<EDMMailUnsubscribes> GetEDMUnsubscribesByWhereBLL(string strSql)
        {
            return esDAL.GetEDMUnsubscribesByWhereDAL(strSql);
        }

        /// <summary>
        /// 往EDMUnsubscribes表中插入数据
        /// </summary>
        /// <returns>返回插入条数</returns>
        public int InsertEDMUnsubscribesBLL(SEO.Model.EDMMailUnsubscribes es)
        {
            return esDAL.InsertEDMUnsubscribesDAL(es);
        }

        /// <summary>
        /// 根据ID更新EDMUnsubscribes表中数据
        /// </summary>
        /// <param name="es">实例化EDMUnsubscribes类</param>
        /// <returns>返回更新条数</returns>
        public int UpdateEDMUnsubscribesBLL(SEO.Model.EDMMailUnsubscribes es)
        {
            return esDAL.UpdateEDMUnsubscribesDAL(es);
        }

        /// <summary>
        /// 根据指定条件删除EDMUnsubscribes表中数据
        /// <param name="strSql">SQL语句</param>
        /// <returns>返回删除条数</returns>
        public int DeleteEDMUnsubscribesBLL(string strSql)
        {
            return esDAL.DeleteEDMUnsubscribesDAL(strSql);
        }
    }
}
